﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for GroupNews
/// </summary>
public class GroupNews : BaseBAL
{
    private int id;
    private string name;
    private int status;

    public int Id { get { return id; } set { id = value; } }
    public string Name { get { return name; } set { name = value; } }
    public int Status { get { return status; } set { status = value; } }

    private CGroupNewsFacade facade = new CGroupNewsFacade();
    public GroupNews Detail(int GroupNewsid)
    {
        return facade.Detail(GroupNewsid);
    }
    public IList<GroupNews> List()
    {
        return facade.List();
    }
    public GroupNews Update(int GroupNewsid, string GroupNewsName, int Status)
    {
        return facade.Update(GroupNewsid, GroupNewsName, Status);
    }
    public GroupNews Insert(string GroupNewsName, int Status)
    {
        return facade.Insert(GroupNewsName, Status);
    }
    public GroupNews UpdateStatusActive(int GroupNewsid, int Status)
    {
        return facade.UpdateStatusActive(GroupNewsid, Status);
    }
}